home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MMC RECENT FILES.XPL < prev    next >
Text File  |  2000-07-12  |  1KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="5"
  3. "COUNT"="1"
  4. "UIPATH"="Program Options\Built in Windows Apps\Microsoft Management Console"
  5. "NAME"="Clear MMC Recent Files"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Clear recent files-MMC"
  9. "DESCRIPTION 1"="To Clear Recent Files in Microsoft Management Console [MMC], Click on Button."
  10. "AUTHOR"="Ojatex@aol.com"
  11. "CONTACTURL"="http://members.aol.com/ojatex/"
  12. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  13. "COMMENT 1"=" "
  14. "COMMENT 2"="Thanks to CptSiskoX for plugin suggestion & settings."
  15.  
  16. sP="HKEY_CURRENT_USER\Software\Microsoft\Microsoft Management Console\Recent File List\"
  17.  
  18. Sub Plugin_Initialize 
  19.   If RegPathExists(sP)=false then
  20.      Disable()
  21.   end if 
  22. End Sub
  23.  
  24. Sub Plugin_CheckData(ElementIndex)
  25. End Sub
  26.  
  27. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  28.  if ElementIndex=1 then     
  29.     for l=1 to 30
  30.         s="File" & l
  31.         v=RegReadValue(sP & s)
  32.         
  33.         If IsEmpty(v)=false then
  34.            Call RegDeleteValue(sP & S)
  35.         end if
  36.     Next
  37.  
  38.     Call MsgInformation("Cleared!")
  39.  end if
  40.  
  41. End Sub
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.